<?php
class Application_Model_NoticeBoard extends Zend_Db_Table_Abstract
{
    protected $_name = "notice_board";

    /**
     * Returns all the notices for a specific batch
     *
     * @param  $batch
     * @return bool|Zend_Db_Table_Rowset_Abstract
     */
    public function getNotices($batch) {
        $data = $this->fetchAll("batch='{$batch}'");
        if($data) {
            return $data;
        } else {
            return FALSE;
        }
    }

}
